package com.project.service.impl;

import com.project.bean.ProvinceBean;
import com.project.mapper.IProvinceMapper;
import com.project.service.IProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProvinceServiceImpl implements IProvinceService {
    @Autowired
    private IProvinceMapper mapper;

    @Override
    public ProvinceBean findById(int id) {
        return mapper.findById(id);
    }

    @Override
    public List<ProvinceBean> findAll() {
        return mapper.findAll();
    }
}
